#include <ggov1.hpp>
Public Member Functions | |
Ggov1Parser () | |
virtual | ~Ggov1Parser () |
void | extract (_data_struct &data_struct, gridpack::component::DataCollection *data, int g_id) |
void | parse (std::vector< std::string > &split_line, gridpack::component::DataCollection *data, int g_id) |
void | store (std::vector< std::string > &split_line, _data_struct &data) |
gridpack::parser::Ggov1Parser< _data_struct >::Ggov1Parser | ( | ) | [explicit] |
Constructor
virtual gridpack::parser::Ggov1Parser< _data_struct >::~Ggov1Parser | ( | ) | [virtual] |
Destructor
void gridpack::parser::Ggov1Parser< _data_struct >::extract | ( | _data_struct & | data_struct, | |
gridpack::component::DataCollection * | data, | |||
int | g_id | |||
) |
Extract data from _data_struct and store it in data collection object
data_struct | data struct object | |
data | data collection object | |
gen_id | index of generator |
References gridpack::component::DataCollection::addValue(), gridpack::component::DataCollection::getValue(), GOVERNOR_ASET, GOVERNOR_DB, GOVERNOR_DM, GOVERNOR_FLAGSWITCH, GOVERNOR_KA, GOVERNOR_KDGOV, GOVERNOR_KIGOV, GOVERNOR_KILOAD, GOVERNOR_KIMW, GOVERNOR_KPGOV, GOVERNOR_KPLOAD, GOVERNOR_KTURB, GOVERNOR_LDREF, GOVERNOR_MAXERR, GOVERNOR_MINERR, GOVERNOR_MODEL, GOVERNOR_R, GOVERNOR_RCLOSE, GOVERNOR_RDOWN, GOVERNOR_ROPEN, GOVERNOR_RSELECT, GOVERNOR_RUP, GOVERNOR_TA, GOVERNOR_TACT, GOVERNOR_TB, GOVERNOR_TC, GOVERNOR_TDGOV, GOVERNOR_TENG, GOVERNOR_TFLOAD, GOVERNOR_TPELEC, GOVERNOR_TRATE, GOVERNOR_TSA, GOVERNOR_TSB, GOVERNOR_VMAX, GOVERNOR_VMIN, GOVERNOR_WFNL, HAS_GOVERNOR, and gridpack::component::DataCollection::setValue().
void gridpack::parser::Ggov1Parser< _data_struct >::parse | ( | std::vector< std::string > & | split_line, | |
gridpack::component::DataCollection * | data, | |||
int | g_id | |||
) |
Parser list of strings and store results in data collection object
split_line | list of tokens from .dyr file | |
data | data collection object | |
gen_id | index of generator |
References gridpack::component::DataCollection::addValue(), gridpack::component::DataCollection::getValue(), GOVERNOR_ASET, GOVERNOR_DB, GOVERNOR_DM, GOVERNOR_FLAGSWITCH, GOVERNOR_KA, GOVERNOR_KDGOV, GOVERNOR_KIGOV, GOVERNOR_KILOAD, GOVERNOR_KIMW, GOVERNOR_KPGOV, GOVERNOR_KPLOAD, GOVERNOR_KTURB, GOVERNOR_LDREF, GOVERNOR_MAXERR, GOVERNOR_MINERR, GOVERNOR_MODEL, GOVERNOR_R, GOVERNOR_RCLOSE, GOVERNOR_RDOWN, GOVERNOR_ROPEN, GOVERNOR_RSELECT, GOVERNOR_RUP, GOVERNOR_TA, GOVERNOR_TACT, GOVERNOR_TB, GOVERNOR_TC, GOVERNOR_TDGOV, GOVERNOR_TENG, GOVERNOR_TFLOAD, GOVERNOR_TPELEC, GOVERNOR_TRATE, GOVERNOR_TSA, GOVERNOR_TSB, GOVERNOR_VMAX, GOVERNOR_VMIN, GOVERNOR_WFNL, HAS_GOVERNOR, gridpack::component::DataCollection::setValue(), gridpack::utility::StringUtils::toUpper(), and gridpack::utility::StringUtils::trimQuotes().
void gridpack::parser::Ggov1Parser< _data_struct >::store | ( | std::vector< std::string > & | split_line, | |
_data_struct & | data | |||
) |
Parse list of strings store results in data_struct object
split_line | list of tokens from .dyr file | |
data | data struct that stores information from file |
References gridpack::utility::StringUtils::clean2Char(), gridpack::utility::StringUtils::toUpper(), and gridpack::utility::StringUtils::trimQuotes().